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

Text::tokenize doesn't fully support the left/right bounds being the same character #10346

Closed
2 of 3 tasks
bradygp opened this issue Mar 3, 2017 · 1 comment
Closed
2 of 3 tasks

Comments

@bradygp
Copy link
Contributor

bradygp commented Mar 3, 2017

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.310.

What you did

$query = 'question "help needed" "garbage" contents of query';
$tokens = Text::tokenize( $query, ' ', '"', '"');

foreach ( $tokens as $index => $token) {
    echo $token . "\n";
}

What happened

question
"help needed"
"garbage" contents of query

What you expected to happen

question
"help needed"
"garbage"
contents
of
query

I orginally posted a question about this on stackoverflow

@cleptric
Copy link
Member

cleptric commented Mar 4, 2017

PR is open.

@cleptric cleptric closed this as completed Mar 4, 2017
markstory added a commit that referenced this issue Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants