Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

SQL string with \n \r or \t prefixed #463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LucianoHanna
Copy link

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Identify SQL string with \n, \r or \t prefixed.

Benefits

Will identify SQL string with \n, \r or \t prefixed as in the following example:

DB::select("
    SELECT 1
");

Possible Drawbacks

None

Applicable Issues

None open

Identify SQL string with \n, \r or \t prefixed.
@KapitanOczywisty
Copy link
Contributor

\s includes all \n, \r and \t, the problem is that grammar interprets one line at the time - so this won't work.

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

Successfully merging this pull request may close these issues.

None yet

2 participants