git-pull - Fetch from and merge with another repository or a local branch SYNOPSIS git pull … DESCRIPTION Runs git-fetch with the given parameters, and calls git-merge to merge the retrieved head(s) into the current branch. With --rebase, calls git-rebase instead of git-merge. Note that you can use . (current directory) as the <repository> to pull from the local repository — this is useful when merging local branches into the current branch. Also note that options meant for git-pull itself and underlying git-merge must be given before the options meant for git-fetch.
Вы вытянули бы, если бы Вы хотите объединенные истории, Вы выбрали бы, если Вы просто 'хотите коды', поскольку некоторый человек отмечал некоторые статьи здесь.
Вы можете использовать регулярное выражение с нечувствительным к регистру модификатором - правда, не обязательно так быстро, как indexOf.
var noPic = largeSrc.search(/nopic/i);
Нет, не существует способа вызова этой функции без учета регистра. Возможно, причина того, что ваш второй пример не работает, заключается в том, что вам не хватает вызова функции text ()
.
Попробуйте следующее:
var search = "nopic";
var noPic = largeSrc.text().toLowerCase().indexOf(search.toLowerCase());