ontodev / valve.js

VALVE in JavaScript
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Support more than one regex flag #7

Closed beckyjackson closed 3 years ago

beckyjackson commented 3 years ago

The current grammar only returns the first regex flag if more than one is provided, e.g.

s/pattern/replacement/gi

This is a small fix to return all flags. I updated the tests as well to use two flags.