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

support like escape #360

Merged
merged 6 commits into from
Oct 13, 2015
Merged

support like escape #360

merged 6 commits into from
Oct 13, 2015

Conversation

siddontang
Copy link
Member

Fix #344

i--
c = '\\'
c = escape
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about i==len(pattern)-1 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just use the old code here, which just seems using the origin escape character directly.
I have added a comment that we will add more tests later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the escape is the last character in the pattern, the match type would be exact match.

@qiuyesuifeng
Copy link
Member

LGTM

1 similar comment
@coocood
Copy link
Member

coocood commented Oct 13, 2015

LGTM

siddontang added a commit that referenced this pull request Oct 13, 2015
@siddontang siddontang merged commit 33016df into master Oct 13, 2015
@siddontang siddontang deleted the siddontang/like-escape branch October 13, 2015 02:48
iosmanthus pushed a commit to iosmanthus/tidb that referenced this pull request May 11, 2023
rleungx pushed a commit to rleungx/tidb that referenced this pull request Feb 26, 2024
* standby for 7.1

Signed-off-by: zeminzhou <[email protected]>

* standby for 7.1

Signed-off-by: zeminzhou <[email protected]>

* update standby condition (pingcap#360)

Signed-off-by: disksing <[email protected]>

* make check

Signed-off-by: zeminzhou <[email protected]>

* make check

Signed-off-by: zeminzhou <[email protected]>

* Update standby/standby.go

Co-authored-by: tidbcloud-bot <[email protected]>

* Update standby/idle_watcher.go

Co-authored-by: tidbcloud-bot <[email protected]>

* make check

Signed-off-by: zeminzhou <[email protected]>

---------

Signed-off-by: zeminzhou <[email protected]>
Signed-off-by: disksing <[email protected]>
Co-authored-by: disksing <[email protected]>
Co-authored-by: tidbcloud-bot <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants