Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
marka
Commits
e82f9807
Commit
e82f9807
authored
Jan 27, 2016
by
Smari McCarthy
Browse files
Testing
parent
00d00ed6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
js/marka.js
js/marka.js
+7
-0
No files found.
js/marka.js
View file @
e82f9807
...
...
@@ -20,6 +20,13 @@ function Marka(target) {
Marka
.
prototype
.
match
=
function
()
{
// docs: https://github.com/padolsey/findAndReplaceDOMText
this
.
currencySymbols
=
"
[€$¢¥₹₨]
"
;
/* var opts = [];
for (sym in currency_info) {
opts.push(currency_info[sym].symbol_native)
}
this.currencySymbols = "(" + opts.join("|") + ")"
console.log(this.currencySymbols)
*/
var
currencySymbols
=
this
.
currencySymbols
;
var
currencyWords
=
"
(
"
+
currencySymbols
+
"
|kr|[Dd]ollars|[Cc]ents on the dollar|[Cc]ents|[Ee]uros|[Pp]ounds|[Rr]upees|[Zz]loty)
"
;
var
numbers
=
"
[
\\
d,.]+
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment