Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ronreiter/interactive-tutorials
/ wordRegexp
Function
wordRegexp
static/js/codemirror/mode/turtle/turtle.js:5–7 ·
view source on GitHub ↗
(words)
Source
from the content-addressed store, hash-verified
3
var
curPunc;
4
5
function
wordRegexp(words) {
6
return
new
RegExp(
"^(?:"
+ words.join(
"|"
) +
")$"
,
"i"
);
7
}
8
var
ops = wordRegexp([]);
9
var
keywords = wordRegexp([
"@prefix"
,
"@base"
,
"a"
]);
10
var
operatorChars = /[*+\-<>=&|]/;
Callers
1
turtle.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected