common/corpus-common-addon/addon/utils/utils.js
author ymh <ymh.work@gmail.com>
Tue, 01 Mar 2016 23:35:33 +0100
changeset 135 66c1d31e2f97
child 137 1baa7c6bd370
permissions -rw-r--r--
first steps to add subject editing
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
135
66c1d31e2f97 first steps to add subject editing
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import * as constants from 'corpus-common-addon/utils/constants';
66c1d31e2f97 first steps to add subject editing
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
66c1d31e2f97 first steps to add subject editing
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
export function isBnfLink(s) {
66c1d31e2f97 first steps to add subject editing
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
  return s.startsWith(constants.BNF_BASE_URL) || s.startsWith(constants.BNF_ARK_BASE_URL) || s.startsWith(constants.BNF_ARK_BASE_ID);
66c1d31e2f97 first steps to add subject editing
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
};