Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getTokens issue with escape charactors #76

Open
aubrijesh opened this issue Apr 24, 2019 · 0 comments
Open

getTokens issue with escape charactors #76

aubrijesh opened this issue Apr 24, 2019 · 0 comments

Comments

@aubrijesh
Copy link

Hi,
I am unable to get correct no of tokens with escape when my string contains escape charector.
eg :

var str = 'FOO "\"hello world\""';
var items = excelFormulaUtilities.getTokens(str).items

Its giving me five tokens.
[{"value":"FOO","type":"operand","subtype":"range"},{"value":"","type":"operand","subtype":"text"},{"value":"hello","type":"operand","subtype":"range"},{"value":"world","type":"unknown","subtype":""},{"value":"","type":"operand","subtype":"text"}]

As you can see there is only two tokens "FOO" and "hello world";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant