search: /[\W]*^([^.]{0,120}[.\s]{1})[\w\W]*/
Use just $1 as replacement to print only the match.
search: /[\W]*^([^.]{0,120}[.\s]{1})[\w\W]*/
Use just $1 as replacement to print only the match.
#!/usr/bin/env bash | |
# For Drupal 8 configuration management. | |
# Strips UUIDs out of configuration YAMLs so that they can be used on any site. | |
# First parameter should be the directory in which to look for the files. | |
for f in $(find "${1}" -type f) | |
do | |
if [[ $(basename "${f}") != "system.site.yml" ]] | |
then | |
perl -pi -e '$_ = "" if ( $. == 1 && $_ =~ /^uuid.*$/ );' "${f}" |
<?php | |
/* | |
* Customize this file as desired. See https://github.com/drush-ops/drush/blob/8.x/examples/policy.drush.inc for documentation. | |
*/ | |
/** | |
* Implements drush_hook_COMMAND_validate(). | |
* | |
* Encourage folks to use `composer` instead of Drush pm commands |
<?php | |
\Drupal::keyValue('system.schema')->set('moduleName', (int) 8000); |
#!/usr/bin/env bash | |
set -e | |
set -o nounset | |
set -o pipefail | |
project_root=$(git rev-parse --show-toplevel) | |
scripts_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
hooksdir="${project_root}/.git/hooks" |