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

Usage info is mangled by symbol substitution #2

Open
DavidGriffith opened this issue May 7, 2019 · 3 comments
Open

Usage info is mangled by symbol substitution #2

DavidGriffith opened this issue May 7, 2019 · 3 comments

Comments

@DavidGriffith
Copy link
Contributor

For the page of info printed by Frotz when started without a zcode file to load, one can see that the word "interpreter" has been mangled to something else.

@DavidGriffith DavidGriffith changed the title Usage info is mangled symbol substitution Usage info is mangled by symbol substitution May 7, 2019
@DavidGriffith
Copy link
Contributor Author

DavidGriffith commented Feb 4, 2020

Pull #3 fixes the problem by adding (?!\\w) to the starting regex, which makes it ignore alphanumeric characters after the match -- so interpreter doesn't get turned into A00033er among other things.

@DavidGriffith
Copy link
Contributor Author

There's something about sed that isn't working correctly or I don't completely understand what's going on. According to testing at https://www.regextester.com/, a regex of interpret(?!\w) should match interpret, but not interpreter. When I put it into my snavig script and your gnusto script, it didn't perform like that. Rather, it matched nothing in the Frotz source code. So, I'd like to back out this commit and go back to the drawing board.

@DavidGriffith
Copy link
Contributor Author

Now fixed and verified in #4.

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