COMMIT TO BE TRASHED
This commit is contained in:
parent
444596aac4
commit
b12f87df44
|
@ -268,7 +268,7 @@ identifier 'identifier'
|
|||
= ([_a-z]+[_a-z0-9]i*) {return nodeIdentifier(text())}
|
||||
|
||||
unitIdentifier 'identifier'
|
||||
= ([_a-zA-Z]+[_a-z0-9]i*) {return nodeIdentifier(text())}
|
||||
= ([_a-df-zA-DF-Z]+[_a-z0-9]i*) {return nodeIdentifier(text())}
|
||||
|
||||
dollarIdentifier '$identifier'
|
||||
= ([\$_a-z]+[\$_a-z0-9]i*) {return nodeIdentifier(text())}
|
||||
|
|
|
@ -16,7 +16,7 @@ module ScientificUnit = {
|
|||
}
|
||||
|
||||
let getMultiplier = (r: string) => {
|
||||
let match = Js.String2.match_(r, %re(`/fromUnit_([_a-zA-Z]*)/`))
|
||||
let match = Js.String2.match_(r, %re(`/fromUnit_([a-zA-Z]*)/`))
|
||||
switch match {
|
||||
| Some([_, unit]) => nameToMultiplier(unit)
|
||||
| _ => None
|
||||
|
|
Loading…
Reference in New Issue
Block a user