Skip to content

Impossible to escape / in Wait regex #592

Open
@3v1n0

Description

@3v1n0

Describe the bug

Using Wait+Screen /foo\\/bar/ or something vhs fails with

22 │ Wait+Screen /foo\\\/bar/
        	            	                  ^^^^^^ Invalid regular expression 'foo\\\': error parsing regexp: trailing backslash at end of expression: ``
        	            	
        	            	 22 │ Wait+Screen /foo\\\/bar/
        	            	                          ^^^^ Invalid command: bar/

Or similar using a single-escape:

22 │ Wait+Screen /foo\/bar/
        	            	                  ^^^^ Invalid regular expression 'foo\': error parsing regexp: trailing backslash at end of expression: ``
        	            	
        	            	 22 │ Wait+Screen /foo\/bar/
        	            	                        ^^^^ Invalid command: bar/

The only way to check it is using \x{2F} instead of /

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions